<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>FLITr: flitr::FFmpegReader Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">FLITr
   &#160;<span id="projectnumber">1.x</span>
   </div>
   <div id="projectbrief">Framework for Live Image Transformation.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classflitr_1_1_f_fmpeg_reader.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-static-methods">Static Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classflitr_1_1_f_fmpeg_reader-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">flitr::FFmpegReader Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="ffmpeg__reader_8h_source.html">ffmpeg_reader.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for flitr::FFmpegReader:</div>
<div class="dyncontent">
<div class="center"><img src="classflitr_1_1_f_fmpeg_reader__coll__graph.png" border="0" usemap="#flitr_1_1_f_fmpeg_reader_coll__map" alt="Collaboration graph"/></div>
<map name="flitr_1_1_f_fmpeg_reader_coll__map" id="flitr_1_1_f_fmpeg_reader_coll__map">
<area shape="rect" id="node2" href="classflitr_1_1_image_format.html" title="{flitr::ImageFormat\n|&#45; Width_\l&#45; Height_\l&#45; PixelFormat_\l&#45; BytesPerPixel_\l&#45; ComponentsPerPixel_\l|+ ImageFormat()\l+ getWidth()\l+ getHeight()\l+ getPixelFormat()\l+ getComponentsPerPixel()\l+ getBytesPerPixel()\l+ getBytesPerImage()\l+ setWidth()\l+ setHeight()\l+ setPixelFormat()\l&#45; setBytesPerPixel()\l&#45; setComponentsPerPixel()\l}" alt="" coords="5,6,187,351"/></map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a924554005adc915c2b8f04e21965ad0e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#a924554005adc915c2b8f04e21965ad0e">FFmpegReader</a> (std::string filename, <a class="el" href="classflitr_1_1_image_format.html#a2bab1cfeef716117996a75550577efdc">ImageFormat::PixelFormat</a> out_pix_fmt)</td></tr>
<tr class="memitem:a54913c14f571e55ecff0e64543346a0c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#a54913c14f571e55ecff0e64543346a0c">~FFmpegReader</a> ()</td></tr>
<tr class="memitem:a2453df4330e6e590abf4b41cf5fe3051"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#a2453df4330e6e590abf4b41cf5fe3051">getImage</a> (<a class="el" href="classflitr_1_1_image.html">Image</a> &amp;out_image, int im_number)</td></tr>
<tr class="memitem:a740fa7dd073b975a09ebe7e91c4d3424"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#a740fa7dd073b975a09ebe7e91c4d3424">getNumImages</a> ()</td></tr>
<tr class="memitem:aae37f57a9b15da8d618a1e2bfeae633d"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#aae37f57a9b15da8d618a1e2bfeae633d">getCurrentImage</a> ()</td></tr>
<tr class="memitem:ad527b9ec7171b66d5899aac97f896b0e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classflitr_1_1_image_format.html">ImageFormat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#ad527b9ec7171b66d5899aac97f896b0e">getFormat</a> ()</td></tr>
<tr class="memitem:a616a5dd24870cb208540851e1a1fb35a"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#a616a5dd24870cb208540851e1a1fb35a">getFrameRate</a> () const </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pri-static-methods"></a>
Static Private Member Functions</h2></td></tr>
<tr class="memitem:af0a61b8b9fa6ea7256d7d8e9b484c94b"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#af0a61b8b9fa6ea7256d7d8e9b484c94b">lockManager</a> (void **mutex, enum AVLockOp op)</td></tr>
<tr class="memdesc:af0a61b8b9fa6ea7256d7d8e9b484c94b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Used for multi-threading access.  <a href="#af0a61b8b9fa6ea7256d7d8e9b484c94b"></a><br/></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:acef0c5bfc2b66530c84d5350fa2465f2"><td class="memItemLeft" align="right" valign="top">AVFormatContext *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#acef0c5bfc2b66530c84d5350fa2465f2">FormatContext_</a></td></tr>
<tr class="memitem:a02e064fdf514504f2e7a21883819c028"><td class="memItemLeft" align="right" valign="top">AVCodecContext *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#a02e064fdf514504f2e7a21883819c028">CodecContext_</a></td></tr>
<tr class="memitem:adc7191f085b0d7a3d88714f8e20c6ceb"><td class="memItemLeft" align="right" valign="top">AVCodec *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#adc7191f085b0d7a3d88714f8e20c6ceb">Codec_</a></td></tr>
<tr class="memitem:a7884240cbe2686284a5407d6bdb8f43e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#a7884240cbe2686284a5407d6bdb8f43e">VideoStreamIndex_</a></td></tr>
<tr class="memitem:a8742474011e3ecf625979550a2e14e1f"><td class="memItemLeft" align="right" valign="top">AVFrame *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#a8742474011e3ecf625979550a2e14e1f">DecodedFrame_</a></td></tr>
<tr class="memdesc:a8742474011e3ecf625979550a2e14e1f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Frame to receive the internal format decoded video.  <a href="#a8742474011e3ecf625979550a2e14e1f"></a><br/></td></tr>
<tr class="memitem:a05945b2e6a86d6f729a7716ba836cd55"><td class="memItemLeft" align="right" valign="top">AVFrame *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#a05945b2e6a86d6f729a7716ba836cd55">ConvertedFrame_</a></td></tr>
<tr class="memdesc:a05945b2e6a86d6f729a7716ba836cd55"><td class="mdescLeft">&#160;</td><td class="mdescRight">Frame containing the image data converted to output format.  <a href="#a05945b2e6a86d6f729a7716ba836cd55"></a><br/></td></tr>
<tr class="memitem:a313d487821ed807bb7a7bf3f1d6f9aed"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#a313d487821ed807bb7a7bf3f1d6f9aed">FrameRate_</a></td></tr>
<tr class="memitem:a0fe3dd6bcc21a3dd2bd066f8ae085a12"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classflitr_1_1_image_format.html">ImageFormat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#a0fe3dd6bcc21a3dd2bd066f8ae085a12">ImageFormat_</a></td></tr>
<tr class="memdesc:a0fe3dd6bcc21a3dd2bd066f8ae085a12"><td class="mdescLeft">&#160;</td><td class="mdescRight">Output format.  <a href="#a0fe3dd6bcc21a3dd2bd066f8ae085a12"></a><br/></td></tr>
<tr class="memitem:a2b04ad9a4de8c9d827abb36dd3a2cafe"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#a2b04ad9a4de8c9d827abb36dd3a2cafe">NumImages_</a></td></tr>
<tr class="memdesc:a2b04ad9a4de8c9d827abb36dd3a2cafe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of frames/images in the video.  <a href="#a2b04ad9a4de8c9d827abb36dd3a2cafe"></a><br/></td></tr>
<tr class="memitem:adbdb997de4ac1aa445be01103ef7b124"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#adbdb997de4ac1aa445be01103ef7b124">CurrentImage_</a></td></tr>
<tr class="memitem:a862e6dec3261d18eeddeefb65f3b9a03"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#a862e6dec3261d18eeddeefb65f3b9a03">FileName_</a></td></tr>
<tr class="memitem:acac6e27cf3ddd95c7f7c78fc4037f5f1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#acac6e27cf3ddd95c7f7c78fc4037f5f1">SingleFrameSource_</a></td></tr>
<tr class="memdesc:acac6e27cf3ddd95c7f7c78fc4037f5f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if e.g. reading from jpg or png files.  <a href="#acac6e27cf3ddd95c7f7c78fc4037f5f1"></a><br/></td></tr>
<tr class="memitem:a366b6a3d1c581babffbd5681c9821074"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#a366b6a3d1c581babffbd5681c9821074">SingleFrameDone_</a></td></tr>
<tr class="memitem:ab3389340789a96e48c7a9400c09fdda2"><td class="memItemLeft" align="right" valign="top">std::tr1::shared_ptr&lt; <a class="el" href="classflitr_1_1_image.html">Image</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#ab3389340789a96e48c7a9400c09fdda2">SingleImage_</a></td></tr>
<tr class="memitem:a2ce83711c47e4156e4b80f33df8a092a"><td class="memItemLeft" align="right" valign="top">std::tr1::shared_ptr<br class="typebreak"/>
&lt; <a class="el" href="classflitr_1_1_stats_collector.html">StatsCollector</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#a2ce83711c47e4156e4b80f33df8a092a">SwscaleStats_</a></td></tr>
<tr class="memitem:aa070b138e6c8a0c9d6a6080968c9a676"><td class="memItemLeft" align="right" valign="top">std::tr1::shared_ptr<br class="typebreak"/>
&lt; <a class="el" href="classflitr_1_1_stats_collector.html">StatsCollector</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#aa070b138e6c8a0c9d6a6080968c9a676">GetImageStats_</a></td></tr>
<tr class="memitem:af2643a616ce175d3be170ddbb50b754a"><td class="memItemLeft" align="right" valign="top">struct SwsContext *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html#af2643a616ce175d3be170ddbb50b754a">ConvertFormatCtx_</a></td></tr>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Class to encapsulate the reading of images from video files using FFmpeg. </p>
</div><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a924554005adc915c2b8f04e21965ad0e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FFmpegReader::FFmpegReader </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classflitr_1_1_image_format.html#a2bab1cfeef716117996a75550577efdc">ImageFormat::PixelFormat</a>&#160;</td>
          <td class="paramname"><em>out_pix_fmt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Creates a reader for a video file.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td>Input video file name. </td></tr>
    <tr><td class="paramname">out_pix_fmt</td><td>The format the image data would be converted. to prior to output. </td></tr>
  </table>
  </dd>
</dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classflitr_1_1_f_fmpeg_reader_a924554005adc915c2b8f04e21965ad0e_cgraph.png" border="0" usemap="#classflitr_1_1_f_fmpeg_reader_a924554005adc915c2b8f04e21965ad0e_cgraph" alt=""/></div>
<map name="classflitr_1_1_f_fmpeg_reader_a924554005adc915c2b8f04e21965ad0e_cgraph" id="classflitr_1_1_f_fmpeg_reader_a924554005adc915c2b8f04e21965ad0e_cgraph">
<area shape="rect" id="node3" href="classflitr_1_1_f_fmpeg_reader.html#af0a61b8b9fa6ea7256d7d8e9b484c94b" title="Used for multi&#45;threading access." alt="" coords="220,5,359,51"/><area shape="rect" id="node5" href="namespaceflitr.html#ade64a6ebeb22a24d7202a8c9cd8dceb2" title="Actually log." alt="" coords="231,75,348,104"/><area shape="rect" id="node14" href="namespaceflitr.html#ab8c99780fb062a99dcf4c62748ef5c88" title="Get the current flags." alt="" coords="193,128,385,157"/><area shape="rect" id="node17" href="namespaceflitr.html#a4e419afa3da6c4d4913f54515dafdf7a" title="flitr::PixelFormatFLITrTo\lFFmpeg" alt="" coords="208,181,371,227"/><area shape="rect" id="node19" href="namespaceflitr.html#ae6283c4d682c4f53f574219ff2307527" title="flitr::PixelFormatFFmpeg\lToFLITr" alt="" coords="207,250,372,297"/><area shape="rect" id="node21" href="classflitr_1_1_image_format.html#a750b9204874a95e9f6b958df3806e0bf" title="flitr::ImageFormat\l::getWidth" alt="" coords="227,319,352,366"/><area shape="rect" id="node23" href="classflitr_1_1_image_format.html#a52ec5edbc27c23acc188e5a85ce4690a" title="flitr::ImageFormat\l::getHeight" alt="" coords="227,389,352,435"/><area shape="rect" id="node25" href="namespaceflitr.html#a041bb1e4e5d19f66fe6e008b83750a95" title="flitr::allocFFmpegFrame" alt="" coords="209,459,369,488"/><area shape="rect" id="node7" href="namespaceflitr.html#ab607eb6aa8d6055d192b78f2d635c2d8" title="Init the flags." alt="" coords="435,101,573,131"/><area shape="rect" id="node9" href="log__message_8cpp.html#a60c5c2565f195f3f6e4aefd629a74d26" title="setInEnvironment" alt="" coords="659,48,781,77"/><area shape="rect" id="node11" href="namespaceflitr.html#ab8702f45e18dd67adc18d12db04b4853" title="Add flags." alt="" coords="623,101,817,131"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a54913c14f571e55ecff0e64543346a0c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FFmpegReader::~FFmpegReader </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2>Member Function Documentation</h2>
<a class="anchor" id="aae37f57a9b15da8d618a1e2bfeae633d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int32_t flitr::FFmpegReader::getCurrentImage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get the number of the last successfully decoded image.</p>
<dl class="section return"><dt>Returns</dt><dd>0 to <a class="el" href="classflitr_1_1_f_fmpeg_reader.html#a740fa7dd073b975a09ebe7e91c4d3424">getNumImages()</a>-1 for valid frames or -1 when not successfully triggered. </dd></dl>

</div>
</div>
<a class="anchor" id="ad527b9ec7171b66d5899aac97f896b0e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classflitr_1_1_image_format.html">ImageFormat</a> flitr::FFmpegReader::getFormat </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get the format that would be used for output.</p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classflitr_1_1_image.html">Image</a> format of the output data. </dd></dl>

</div>
</div>
<a class="anchor" id="a616a5dd24870cb208540851e1a1fb35a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t flitr::FFmpegReader::getFrameRate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get the frame rate of the video.</p>
<dl class="section return"><dt>Returns</dt><dd>Frame rate. </dd></dl>

</div>
</div>
<a class="anchor" id="a2453df4330e6e590abf4b41cf5fe3051"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool FFmpegReader::getImage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classflitr_1_1_image.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>out_image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>im_number</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Reads the specified frame from the video file.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">out_image</td><td><a class="el" href="classflitr_1_1_image.html">Image</a> to receive the read data. </td></tr>
    <tr><td class="paramname">im_number</td><td><a class="el" href="classflitr_1_1_image.html">Image</a> or frame number in the video (0-based).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if an image was successfully read. </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classflitr_1_1_f_fmpeg_reader_a2453df4330e6e590abf4b41cf5fe3051_cgraph.png" border="0" usemap="#classflitr_1_1_f_fmpeg_reader_a2453df4330e6e590abf4b41cf5fe3051_cgraph" alt=""/></div>
<map name="classflitr_1_1_f_fmpeg_reader_a2453df4330e6e590abf4b41cf5fe3051_cgraph" id="classflitr_1_1_f_fmpeg_reader_a2453df4330e6e590abf4b41cf5fe3051_cgraph">
<area shape="rect" id="node3" href="namespaceflitr.html#ade64a6ebeb22a24d7202a8c9cd8dceb2" title="Actually log." alt="" coords="193,59,311,88"/><area shape="rect" id="node12" href="classflitr_1_1_image.html#a2bcec747b309a766a3d087f9351cba16" title="flitr::Image::data" alt="" coords="193,112,311,141"/><area shape="rect" id="node5" href="namespaceflitr.html#ab607eb6aa8d6055d192b78f2d635c2d8" title="Init the flags." alt="" coords="360,59,499,88"/><area shape="rect" id="node7" href="log__message_8cpp.html#a60c5c2565f195f3f6e4aefd629a74d26" title="setInEnvironment" alt="" coords="584,5,707,35"/><area shape="rect" id="node9" href="namespaceflitr.html#ab8702f45e18dd67adc18d12db04b4853" title="Add flags." alt="" coords="548,59,743,88"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a740fa7dd073b975a09ebe7e91c4d3424"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t flitr::FFmpegReader::getNumImages </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Obtain the number of images/frames present in the video file.</p>
<dl class="section return"><dt>Returns</dt><dd>Number of images/frames. </dd></dl>

</div>
</div>
<a class="anchor" id="af0a61b8b9fa6ea7256d7d8e9b484c94b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int FFmpegReader::lockManager </td>
          <td>(</td>
          <td class="paramtype">void **&#160;</td>
          <td class="paramname"><em>mutex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">enum AVLockOp&#160;</td>
          <td class="paramname"><em>op</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Used for multi-threading access. </p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classflitr_1_1_f_fmpeg_reader_af0a61b8b9fa6ea7256d7d8e9b484c94b_icgraph.png" border="0" usemap="#classflitr_1_1_f_fmpeg_reader_af0a61b8b9fa6ea7256d7d8e9b484c94b_icgraph" alt=""/></div>
<map name="classflitr_1_1_f_fmpeg_reader_af0a61b8b9fa6ea7256d7d8e9b484c94b_icgraph" id="classflitr_1_1_f_fmpeg_reader_af0a61b8b9fa6ea7256d7d8e9b484c94b_icgraph">
<area shape="rect" id="node3" href="classflitr_1_1_f_fmpeg_reader.html#a924554005adc915c2b8f04e21965ad0e" title="flitr::FFmpegReader\l::FFmpegReader" alt="" coords="192,5,331,51"/></map>
</div>
</p>

</div>
</div>
<h2>Member Data Documentation</h2>
<a class="anchor" id="adc7191f085b0d7a3d88714f8e20c6ceb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">AVCodec* flitr::FFmpegReader::Codec_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a02e064fdf514504f2e7a21883819c028"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">AVCodecContext* flitr::FFmpegReader::CodecContext_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a05945b2e6a86d6f729a7716ba836cd55"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">AVFrame* flitr::FFmpegReader::ConvertedFrame_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Frame containing the image data converted to output format. </p>

</div>
</div>
<a class="anchor" id="af2643a616ce175d3be170ddbb50b754a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">struct SwsContext* flitr::FFmpegReader::ConvertFormatCtx_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="adbdb997de4ac1aa445be01103ef7b124"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int32_t flitr::FFmpegReader::CurrentImage_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>-1 if nothing decoded yet, otherwise the number of the last -decoded frame. </p>

</div>
</div>
<a class="anchor" id="a8742474011e3ecf625979550a2e14e1f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">AVFrame* flitr::FFmpegReader::DecodedFrame_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Frame to receive the internal format decoded video. </p>

</div>
</div>
<a class="anchor" id="a862e6dec3261d18eeddeefb65f3b9a03"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string flitr::FFmpegReader::FileName_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="acef0c5bfc2b66530c84d5350fa2465f2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">AVFormatContext* flitr::FFmpegReader::FormatContext_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a313d487821ed807bb7a7bf3f1d6f9aed"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t flitr::FFmpegReader::FrameRate_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aa070b138e6c8a0c9d6a6080968c9a676"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::tr1::shared_ptr&lt;<a class="el" href="classflitr_1_1_stats_collector.html">StatsCollector</a>&gt; flitr::FFmpegReader::GetImageStats_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a0fe3dd6bcc21a3dd2bd066f8ae085a12"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classflitr_1_1_image_format.html">ImageFormat</a> flitr::FFmpegReader::ImageFormat_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Output format. </p>

</div>
</div>
<a class="anchor" id="a2b04ad9a4de8c9d827abb36dd3a2cafe"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t flitr::FFmpegReader::NumImages_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Number of frames/images in the video. </p>

</div>
</div>
<a class="anchor" id="a366b6a3d1c581babffbd5681c9821074"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool flitr::FFmpegReader::SingleFrameDone_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="acac6e27cf3ddd95c7f7c78fc4037f5f1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool flitr::FFmpegReader::SingleFrameSource_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>True if e.g. reading from jpg or png files. </p>

</div>
</div>
<a class="anchor" id="ab3389340789a96e48c7a9400c09fdda2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::tr1::shared_ptr&lt;<a class="el" href="classflitr_1_1_image.html">Image</a>&gt; flitr::FFmpegReader::SingleImage_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a2ce83711c47e4156e4b80f33df8a092a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::tr1::shared_ptr&lt;<a class="el" href="classflitr_1_1_stats_collector.html">StatsCollector</a>&gt; flitr::FFmpegReader::SwscaleStats_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a7884240cbe2686284a5407d6bdb8f43e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int flitr::FFmpegReader::VideoStreamIndex_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>include/flitr/<a class="el" href="ffmpeg__reader_8h_source.html">ffmpeg_reader.h</a></li>
<li>src/flitr/<a class="el" href="ffmpeg__reader_8cpp.html">ffmpeg_reader.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespaceflitr.html">flitr</a></li><li class="navelem"><a class="el" href="classflitr_1_1_f_fmpeg_reader.html">FFmpegReader</a></li>
    <li class="footer">Generated on Thu Dec 6 2012 09:15:45 for FLITr by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1.2 </li>
  </ul>
</div>
</body>
</html>
